local function get_common_inst()
    local inst = require("prefabs/npc_characters/__00__human_npc_common")():Common_Npc_Create()
    return inst
end

local function woodie_beaver()
    local inst = get_common_inst()
    inst.AnimState:SetBuild("woodie")
    inst.prefab_base = "woodie"
    inst.soundsname = "woodie"
    
    inst:AddTag("woodie_beaver_npc")
    -- inst:AddTag("woodcutter")   --- 需要这个才能拿起lucy
    -- local function customidleanimfn(inst)
    --     if not TheWorld.ismastersim then
    --         return nil
    --     end
    --     local item = inst.components.inventory:GetEquippedItem(EQUIPSLOTS.HANDS)
    --     return item ~= nil and item.prefab == "lucy" and "idle_woodie" or nil
    -- end
    -- inst.customidleanim = customidleanimfn

    if not TheWorld.ismastersim then
        return inst
    end



    inst.components.locomotor.runspeed = TUNING.BEAVER_RUN_SPEED

    inst.AnimState:SetBank("werebeaver")
    inst.prefab = "woodie"
    inst.components.skinner:SetSkinMode("werebeaver_skin")
    inst.DynamicShadow:SetSize(1.3, .6 )
    inst.components.debuffable:SetFollowSymbol("torso", 0, -280, 0 )
    inst.Transform:SetFourFaced()
    inst.prefab = "woodie_beaver_npc"

    return inst
end

return Prefab("woodie_beaver_npc",woodie_beaver)